package com.cc8w.home.controller;

import com.cc8w.home.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/index")
public class IndexController {

    @Autowired
    private UserService userService;


    @RequestMapping("/index")
    public String index(){
        userService.queryUserByUserName("queryUserByUserName-->模拟测试");
        return "index";
    }
    @RequestMapping("/getuserbyname")
    public String getUserByName(){
        userService.queryUserByName("queryUserByName-->模拟测试");
        return "index";
    }


}
